﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Core.Domain.ShopUsers>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var cb = this.ViewContext.Controller as MShop.Web.Controllers.ControllerBase;  %>
    <% Html.EnableClientValidation();%>
    <% using (Html.BeginForm("personal", "usercenter", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
    <div id="content" class="ovfl">
        <div id="left" class="side fl">
            <%=Html.Action("menu")%>
        </div>
        <div id="right" class="main fr">
            <div class="main_ct">
                <%: Html.ValidationSummary(true) %>
                <div class="personal">
                    <h2 class="title" style="display:none;">
                        个人头像
                    </h2>
                    <div class="u_box">
                        <table class="userInfo" style="display:none;">
                            <tr >
                                <td class="text_right">
                                     <img src="../../images/16.jpg" class="tx" />
                                </td>
                                <td>
                                    <p>
                                        <input name="Face" id="Face" type="file" /> 
                                    </p>
                                    <p>
                                        图片格式:GIF、JPG、JPEG、PNG,最适合尺寸100*100 像素</p>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <h2 class="title">
                        帐号资料
                    </h2>
                    <div class="u_box">
                        <table class="userInfo">
                            <tr>
                                <td class="text_right">
                                    用户名：
                                </td>
                                <td>
                                    <%=User.Identity.Name %>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    电子邮件：
                                </td>
                                <td>
                                    <%=cb.ShopContext.CurrentUser.aspnet_Membership.Email%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    真实姓名：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.TrueName)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    性别：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Sex,"sex")%>
                                </td>
                            </tr>
                             <tr>
                                <td class="text_right">
                                    身份证：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.IdCard)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    出生年月：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Born,"date")%>
                                </td>
                            </tr>
                             <tr>
                                <td class="text_right">
                                    地区：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.AreaId)%>
                                </td>
                            </tr> 
                            <tr>
                                <td class="text_right">
                                    地址：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Address)%>
                                </td>
                            </tr> 
                             <tr>
                                <td class="text_right">
                                    备注：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Memo)%>
                                </td>
                            </tr> 
                        </table>
                    </div>
                    <h2 class="title">
                        联系方式
                    </h2>
                    <div class="u_box">
                        <table class="userInfo">
                            <tr>
                                <td class="text_right">
                                    <%: Html.LabelFor(model => model.QQ) %>：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.QQ)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    <%: Html.LabelFor(model => model.Msn) %>：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Msn)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    <%: Html.LabelFor(model => model.Mobile) %>：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Mobile)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                    <%: Html.LabelFor(model => model.Tel) %>：
                                </td>
                                <td>
                                    <%: Html.EditorFor(model => model.Tel)%>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right">
                                </td>
                                <td>
                                    <input type="submit" value="完成修改" class="btn_login" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <% } %>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphMeta" runat="server">
    <link type="text/css" rel="stylesheet" href="/css/userCenter.css" />
    <script type="text/javascript" src="/js/Calendar/WdatePicker.js"></script>
    <script type="text/javascript" src="/js/MicrosoftAjax.js"></script>
    <script type="text/javascript" src="/js/MicrosoftMvcValidation.js"></script>
    <script type="text/javascript" src="/js/MvcFoolproofValidation.min.js"></script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
